<?php
	if (!session_id()) session_start();
	require_once('web_fns.php');
	$user_id = $_POST['user_id'];
	$mobile_code = $_POST['mobile_code'];
	$passwd = $_POST['passwd'];
	$check_result = change_password($users,$user_id,$mobile_code,$passwd);
	switch($check_result) {
		//手机号未注册
		case 2:
			echo "2";
			break;
		//修改成功
		case 1:
			echo "1";
			break;
		//手机验证码有误
		case 3:
			echo "3";
			break;
		//查询发生错误
		default:
			echo "0";
	}
?>